#include <iostream>


class Test
{
public:
    Test()
    {
        std::cout<<"无参构造"<<std::endl;
    }
    Test(int a)
    {
        std::cout<<"带参构造"<<std::endl;
    }
    Test(Test& a)
    {
        std::cout<<"拷贝构造"<<std::endl;
    }
    ~Test()
    {
        std::cout<<"析构函数"<<std::endl;
    }
};

int main()
{
    Test *t = new Test;
    delete t;
    return 0;
}